package com.yiya.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yiya.bean.Expense;
import com.yiya.model.ExpenseCplex;
import com.yiya.model.ExpenseCplexModel;
import com.yiya.model.ExpenseExample;

public interface ExpenseMapper {
    int countByExample(ExpenseExample example);

    int deleteByExample(ExpenseExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Expense record);

    int insertSelective(Expense record);

    List<Expense> selectByExample(ExpenseExample example);

    Expense selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Expense record, @Param("example") ExpenseExample example);

    int updateByExample(@Param("record") Expense record, @Param("example") ExpenseExample example);

    int updateByPrimaryKeySelective(Expense record);

    int updateByPrimaryKey(Expense record);
    
    List<ExpenseCplex> selectByModel(ExpenseCplexModel record);

	int countByModel(ExpenseCplexModel record);
	
	ExpenseCplex selectById(Integer id);
}